package com.chuangke.framework.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.chuangke.common.db.page.CkPageQuery;
import com.chuangke.framework.model.BasicModel;

/**
 * 字典模型服务接口
 */
public interface GridDictModelService<T extends BasicModel> {

	void save(T record);

	void save(List<T> records);

	void delete(T record);

	void delete(List<T> records);
	
	void deleteByIds(List<String> ids);

	Map<String, T> findMap();

	List<T> findList();

	T findById(String id);
	
	IPage<T> page(CkPageQuery page);

}